cmake_minimum_required(VERSION 3.6)
project(thirdparty VERSION 1.0.0 LANGUAGES CXX)
add_library(thirdparty SHARED native-lib.cpp)
find_library(log-lib log)
find_package(bzip2 REQUIRED CONFIG)
find_package(yuv REQUIRED CONFIG)
find_package(rtmp REQUIRED CONFIG)
find_package(lame REQUIRED CONFIG)
find_package(faac REQUIRED CONFIG)
target_link_libraries(thirdparty ${log-lib} bzip2::bzip2 yuv::yuv rtmp::rtmp lame::lame faac::faac)